<template>
	<view class="mask flex-center">
		<view class="content botton-radius">

			<view class="content-header"></view>
			<view class="content-body">
				<view class="title">
					<text>温馨提示</text>
				</view>
				<view class="body">
					<scroll-view class="box-des-scroll" scroll-y="true">
						<view>
							<text class="indented-text">
								{{space}}本店当前时段所有包厢已被预约,您可以预约本店其他时段,或者可以预定附近其他的门店,感谢配合！
							</text>
						</view>
						
						<view v-for="(item,index) in item.nearby_shop" :key="index" class="vipItem mx4 r4" @click="goShop(item)">
							<view class="shop-css">
								<view class="name-css">
									<text class="nameItem">【{{item.name}}】</text>
									<text class="fs10 distance">{{item.distance}}</text>
								</view>
								<view class="add-css">{{item.address}}</view>
							</view>
							
						</view>
						
					</scroll-view>
				</view>
				<view class="footer flex-center">

					<button @click="know" class="content-button" style="border: none;color: #fff;" plain>
						继续预定当前门店
					</button>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		
		props: {
			item: {
				type: Object,
				default: {}
			}
		},
		
		data() {
			return {
				content: '<p>我们仅提供设备及相应设备设施，使用人须遵守治安管理条例,违者由使用人自行承担相应责任及后果</p><p>1.严禁未年人进入场所;</p><p>2.严禁黄.赌.毒打架斗殴等一切违法活动;</p><p>3.使用人须自行对身体状况负责,注意个人安全;</p><p>4.破坏或带走本场所提供的设备请照价赔偿;</p><p>5.请自行保管好私人物品,如有遗失概不负责;</p><p><br/></p>',
				title: '',
				id: '',
				space: '\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0' // 两个非断空格
			}
		},
		mounted() {


		},
		methods: {
			
			know() {

				this.$emit("closeFull")
			},
			goShop(item){
				console.log("detail" + JSON.stringify(item))
				uni.navigateTo({
					url: '../shop/detail?id=' + item.id + "&distance=" + item.distance
				})
			}
		}
	}
</script>

<style>
	page {
		background: transparent;
	}

	.flex-center {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		justify-content: center;
		align-items: center;
	}
	
	.add-css{
		font-size: 10px;
		color: darkgray;
	}
	
	.distance{
		margin-left: 2px;
		color: #fa311f;
	}
	
	.name-css{
		display: flex;
		justify-content: space-between; /* 使子元素在主轴上两端对齐 */
		align-items: center; /* 垂直居中对齐 */
		padding: 7px;
	}

	.mask {
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, .65);
	}
	
	.nameItem{
		/* background-color: #fa6c0d;color: #fff; */
		color:#fa6c0d;
	}

	.botton-radius {
		border-bottom-left-radius: 30rpx;
		border-bottom-right-radius: 30rpx;

		border-top-left-radius: 30rpx;
		border-top-right-radius: 30rpx;
	}

	.content {
		position: relative;
		top: 0;
		width: 600rpx;
		background-color: #fff;
		box-sizing: border-box;
		padding: 0 20rpx;
		font-family: Source Han Sans CN;
	}
	
	.indented-text {
	  text-indent: 2em; /* 2个字符宽度的缩进 */
	  color: red;
	  font-size: 15px;
	  font-weight: bold;
	}

	.content-top {
		position: absolute;
		top: -195rpx;
		left: 0;
		width: 600rpx;
		height: 70rpx;
	}

	.content-top-text {
		font-size: 45rpx;
		font-weight: bold;
		color: #F8F8FA;
		position: absolute;
		top: 120rpx;
		left: 50rpx;
		z-index: 1;
	}

	.content-header {
		height: 40rpx;
	}

	.title {
		font-size: 40rpx;
		font-weight: bold;
		color: #F8B62B;
		line-height: 38px;
		text-align: center;
	}

	.footer {
		height: 150rpx;
		display: flex;
		align-items: center;
		justify-content: space-around;
	}

	.box-des-scroll {
		box-sizing: border-box;
		padding: 0 20rpx;
		height: 600rpx;
		text-align: left;
	}

	.box-des {
		font-size: 26rpx;
		color: #000000;
		line-height: 50rpx;
	}

	.progress-box {
		width: 100%;
	}

	.progress {
		width: 90%;
		height: 40rpx;
		border-radius: 35px;
	}

	.close-img {
		width: 70rpx;
		height: 70rpx;
		z-index: 1000;
		position: absolute;
		bottom: -120rpx;
		left: calc(50% - 70rpx / 2);
	}

	.content-button {
		text-align: center;
		flex: 1;
		font-size: 30rpx;
		font-weight: 400;
		color: #FFFFFF;
		border-radius: 40rpx;
		margin: 0 18rpx;
		height: 80rpx;
		line-height: 80rpx;

		background: linear-gradient(to right, #F8B62B, #F8B62B);
	}

	.flex-column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.shop-css{
		border: 1px solid #eaeaea; /* 默认边框 */
		border-radius: 5px; /* 默认圆角 */
		font-weight: bold; /* 文字加粗 */
		padding: 9px 5px;
		margin-top: 2px;
	}
	.vipItem{
		margin-top: 8px;
	}
</style>